//
//  PostDetailView.swift
//  WeiboDemo
//
//  Created by 姬向阳 on 2020/4/19.
//  Copyright © 2020 SUNNYJ. All rights reserved.
//

import SwiftUI

struct PostDetailView: View {
    let post : Post
    
    var body: some View {
        List {
            PostCell(post: post)
                .listRowInsets(EdgeInsets())
            ForEach(1...10,id: \.self) { i in
                Text("评论\(i)")
            }
        }
        .navigationBarTitle("详情",displayMode: .inline)
    }
}

struct PostDetailView_Previews: PreviewProvider {
    static var previews: some View {
        PostDetailView(post: UserData().recommendPostList.list[0]).environmentObject(UserData())
    }
}
